Notes concerning the code (under Windows):

Compile this program as a console application.
It does not contain any graphics routines.
The code has been tested with Microsoft Visual C++
version 5.0. 